package cn.tedu.spring.diarray;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Arrays;

public class PsersonTest {

    @Test
    public void demo01Test(){
        ApplicationContext context = new ClassPathXmlApplicationContext("bean-diarray.xml");
        Person person = context.getBean("person", Person.class);
        System.out.println("person = " + person);

        String[] arr = person.getHobby();
        System.out.println(Arrays.toString(arr));
    }
}
